﻿using Hrm.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Services
{
    public interface IBlogService:IBaseService<BlogPost>
    {
        PageResponse<BlogPost> PageBlogPostList(PageRequest<BlogPost> request);

        List<BlogPost> PopularBlogPostList();

        List<BlogPost> TopBlogPostList(int topNum);

        List<BlogPost> RecentBlogPostList();

        List<BlogComment> RecentBlogCommentList();

        List<BlogTag> GetAllTag();

        bool AddComment(BlogComment model);

        bool DeleteComment(int id);

        /// <summary>
        /// 前一篇博文
        /// </summary>
        /// <returns></returns>
        BlogPost PreBlogPost(int id);

        /// <summary>
        /// 下一篇博文
        /// </summary>
        /// <returns></returns>
        BlogPost NextBlogPost(int id);
    }
}
